<include file="common/header_lixin" title="个人中心" />
<div class="page">
    <div class="page-hd">
        <div class="header bor-1px-b">
            <div class="header-left">
                <a href="javascript:history.go(-1)" class="left-arrow"></a>
            </div>
            <div class="header-title">个人中心</div>
            <div class="header-right">
                <a href="#"></a>
            </div>
        </div>
    </div>
    <div class="page-bd">
        <!-- 页面内容-->
        <style>
            .user_info_cells{
                background-color: #2ee6cc;
            }
        </style>
        <div class="user_info_cells">
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <div class="avatar"><img src="__PUBLIC__/assets/images/head.jpg" alt=""></div>
                </div>
                <!--<form id="head_pic" method="post" enctype="multipart/form-data">-->
                    <!--<label class="file" style="cursor:pointer;" for="head_picss">-->
                        <!--<div class="weui-cell__hd" id="fileList">-->
                            <!--<img src="{$uinfo['profilePhoto']|default='__PUBLIC__/images/u_icon1.png'}" alt="">-->
                            <!--<input id="head_picss" type="file" accept="image/jpg,image/jpeg,image/png" name="head_pic"-->
                                   <!--onchange="handleFiles(this)" style="display:none">-->
                            <!--<input type="hidden" id="head_img" name="head_img" value="">-->
                        <!--</div>-->
                    <!--</label>-->
                <!--</form>-->
                <div class="weui-cell__bd">
                    <div class="fs30">邀请码：{$uinfo.invitecode}</div>
                    <div class="fs26">账号：{$uinfo.account}</div>
                    <div class="fs26">等级：<if condition="$uinfo.lh_name eq 1">联创<else/>{$uinfo.level_name}</if></div>
                </div>
            </div>
        </div>
        <div class="card-box">
            <if condition="$minerCount gt 0">
            <div class="card-flex">
                <div class="flex_item">
                    <div class="fs38 font_number">{$leaderCount}</div>
                    <div class="fs26 text-gray2">直推合约</div>
                </div>
                <div class="flex_item">
                    <div class="fs38 font_number">{$teamCount}</div>
                    <div class="fs26 text-gray2">总合约</div>
                </div>
            </div>
            </if>
        </div>
        <div class="card-box">
            <div class="weui-grids mytool_grids grid_w3" style="background-color: #fff;">
                <!--<div class="weui-grid">
                    <div class="fs34 font_number">{$uinfo.balance || default=0}</div>
                    <p class="fs22 text-gray">
                        可售余额(枚)
                    </p>
                </div>-->
               <!-- <div class="weui-grid">
                    <div class="fs34 font_number">{$uinfo.salable_quota || default=0}</div>
                    <p class="fs22 text-gray">
                        可售额度
                    </p>
                </div>-->
               <!-- <div class="weui-grid">
                    <div class="fs34 font_number"><if condition="$profitCount GT 0">{$profitCount}<else />0</if></div>
                    <p class="fs22 text-gray">
                        累计产量(枚)
                    </p>
                </div>-->
                <!--<div class="weui-grid">
                    <div class="fs34 font_number"><if condition="$distCount GT 0">{$distCount}<else />0</if></div>
                    <p class="fs22 text-gray">
                        累计奖金(枚)
                    </p>
                </div>-->
                <!--<div class="weui-grid">
                    <div class="fs34 font_number"><if condition="$allProfit GT 0">{$allProfit}<else />0</if></div>
                    <p class="fs22 text-gray">
                        总收益(枚)
                    </p>
                </div>-->
                <div class="weui-grid">
                    <div class="fs34 font_number"><if condition="$uinfo.kj_all_token GT 0">{$uinfo.kj_all_token}<else />0.00</if></div>
                    <p class="fs22 text-gray">
                        矿池
                    </p>
                </div>

                <div class="weui-grid">
                    <a href="{:U('Acc/Member/bill')}">
                    <div class="fs34 font_number"><if condition="$uinfo.all_receive GT 0">{$uinfo.all_receive}<else />0</if></div>
                    <p class="fs22 text-gray">
                       已收益
                    </p>
                    </a>
                </div>
                <div class="weui-grid">
                    <a href="{:U('Acc/Member/ti_zhuan')}">
                        <div class="fs34 font_number">{$uinfo.miner}</div>
                        <p class="fs22 text-gray">
                            矿机钱包(枚)
                        </p>
                    </a>

                </div>
                <!--<div class="weui-grid">
                    <div class="fs34 font_number">{$minerCount}</div>
                    <p class="fs22 text-gray">
                        有效矿机(台)
                    </p>
                </div>-->
                <div class="weui-grid">
                    <div class="fs34 font_number"><if condition="$userMiner.kj_pre_token GT 0">{$userMiner.kj_pre_token}<else />0.00</if></div>
                    <p class="fs22 text-gray">
                        预存矿池
                    </p>
                </div>
               <!-- <div class="weui-grid">
                    <div class="fs34 font_number">{$uinfo.miner_pool}</div>
                    <p class="fs22 text-gray">
                        矿机资产(枚)
                    </p>
                </div>-->
                <!--<div class="weui-grid">
                    <div class="fs34 font_number">{$teamCalculation}</div>
                    <p class="fs22 text-gray">
                        团队算力
                    </p>
                </div>-->
            </div>
        </div>
        <div class="card-box">
            <div class="weui-panel">
                <div class="weui-panel__hd">
                    <span class="panel_tit">我的工具</span>
                </div>
                <div class="weui-panel__bd">
                    <div class="weui-grids mytool_grids">
                        <!--<a href="javascript:void(0)" onclick="sign()" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/01.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                我要签到
                            </p>
                        </a>
                        <a href="{:U('Acc/Mining/exchange')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/02.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                兑换管理
                            </p>
                        </a>-->
                       <!-- <a href="{:U('Acc/Mining/orepool_assets')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/03.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                矿机资产
                            </p>
                        </a>-->
                       <!-- <a href="{:U('Acc/Member/seal')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/04.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                账户解封
                            </p>
                        </a>-->
                        <a href="{:url('bill')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/05.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                财务明细
                            </p>
                        </a>
                        <a href="{:url('userData')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/06.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                个人资料
                            </p>
                        </a>

                        <!--<a href="{:U('Acc/Member/payment_team')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/07.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                收款方式设置
                            </p>
                        </a>-->

                        <a href="{:U('icon_address')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/03.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                钱包地址
                            </p>
                        </a>

                        <a href="{:U('ti_zhuan')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/03.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                钱包提转
                            </p>
                        </a>
                        <a href="{:url('tz_log')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/05.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                提转明细
                            </p>
                        </a>
                        <if condition="$minerCount gt 0">
                        <a href="{:url('team')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/10.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                我的团队
                            </p>
                        </a>
                        </if>
                        <a href="{:url('Login/exitLogin')}" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__PUBLIC__/assets/images/exit.png" alt="">
                            </div>
                            <p class="weui-grid__label">
                                退出登录
                            </p>
                        </a>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="common/footer_lixin"/>
</div>
<script>
    $(function() {
        FastClick.attach(document.body);
    });
    function sign()
    {
        $.ajax({
            url : "/index.php/Acc/Member/sign",
            type:'post',
            dataType:'json',
            success:function(data){
                if (data.code==1) {
                    $.toptip('签到成功', 'success')
                }else{
                    $.toptip(data.msg, 'error');
                }

            },
            error:function(){
                $.toptip('网络异常，请稍后再试', 'error');
            }
        })
    }

</script>
</body>
</html>
